package com.haoze.nurseapp.dao;

import com.haoze.nurseapp.model.ReceiveBloodRecordEntity;
import com.haoze.nurseapp.vo.BloodVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BloodMapper {

    List<BloodVo> getBloodList(@Param("wardId") String wardId,@Param("reqNum") String reqNum);

    void insertReceiveBloodRecordEntity(@Param("list") List<ReceiveBloodRecordEntity> recordEntityList);

    //待领取
    List<BloodVo> queryBloodListByUnclaimed(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("keyWords") String keywords,@Param("wardId") String wardId);

    //待确认、待执行、已执行
    List<BloodVo> queryBloodListByStatus(@Param("startDate") String startDate,@Param("endDate") String endDate,
                                        @Param("keyWords") String keywords,@Param("wardId") String wardId,
                                        @Param("status") String status,@Param("nodeCode") String nodeCode);

    //已退回
    List<BloodVo> queryBloodListByReturn(@Param("startDate") String startDate,@Param("endDate") String endDate,
                                        @Param("keyWords") String keywords,@Param("wardId") String wardId);


    //根据血袋条码获取血液信息
    BloodVo queryBloodInfoByBloodBagCode(@Param("bloodBagCoding") String bloodBagCoding);





}



